;;; early-init.el --- Run before init.el -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(setq load-path-filter-function #'load-path-filter-cache-directory-files)

;; Set `gc-cons-threshold' and `gc-cons-percentage' when startup.
(setq gc-cons-threshold 402653184 gc-cons-percentage 0.6)

;; Hidden some graphical elements in default frame, not disable it.
;; Use commands like toggle-scroll-bar to show them.
(push '(menu-bar-lines . 0) default-frame-alist)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)
(push '(undecorated . t) default-frame-alist)

(setenv "LSP_USE_PLISTS" "true")

;;; early-init.el ends here
